package main

import (
	"Ginproject/GinProject/uploadfile/src"
	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.Default()
	router.LoadHTMLGlob("template/**/*")
	router.Static("/static", "./static")

	router.GET("/toupload", src.ToUpLoad)
	router.POST("/doupload", src.DoUpLoad)

	router.GET("/toupload2", src.ToUpLoad2)
	router.POST("/doupload2", src.DoUpLoad2)

	router.GET("/toupload3", src.ToUpLoad3)
	router.POST("/doupload3", src.DoUpLoad3)

	router.GET("/toupload4", src.ToUpLoad4)
	router.POST("/doupload4", src.DoUpLoad4)

	router.Run(":8080")
}
